package com.wsx.ones.boot.core.redis;

public class RedisBean {

	private String selectdb;
	private String hostIp;		//redis的ip  如果有是主备模式，主机和备机的ip用,分隔
	private String	port;
	
	private String timeout;
	private String weight;
	private String name;
	
	public RedisBean() {
	}
	
	public RedisBean(String hostIp, String port, String selectdb) {
		this.hostIp = hostIp;
		this.port = port;
		this.selectdb = selectdb;
	}
	
	public RedisBean(String hostIp, String port, String selectdb,String timeout, String weight, String name) {
		this.hostIp = hostIp;
		this.port = port;
		this.selectdb = selectdb;
		this.timeout = timeout;
		this.weight = weight;
		this.name = name;
	}
	
	public String getSelectdb() {
		return selectdb;
	}
	public void setSelectdb(String selectdb) {
		this.selectdb = selectdb;
	}
	public String getHostIp() {
		return hostIp;
	}
	public void setHostIp(String hostIp) {
		this.hostIp = hostIp;
	}
	public String getPort() {
		return port;
	}
	public void setPort(String port) {
		this.port = port;
	}
	public String getTimeout() {
		return timeout;
	}
	public void setTimeout(String timeout) {
		this.timeout = timeout;
	}
	public String getWeight() {
		return weight;
	}
	public void setWeight(String weight) {
		this.weight = weight;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
